package com.kuang.scanner;

import java.util.Scanner;

public class Demo04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double sum = 0;
        int m = 0;
        while(scanner.hasNextDouble()){
            double x = scanner.nextDouble();
            m=m+1;
            sum += x;
        }
        System.out.println(m+"个数和"+sum);
        System.out.println(m+"个数和平均为" + (sum/m));

    scanner.close();
    }
}
